package com.lmk.t03;

import java.util.Random;

public class RandomTest {
    public static void main(String[] args) {
        for (int i = 0; i <10 ; i++) {
            int n=(int)(Math.random()*1000)%34+5;
            System.out.println( n);
        }
       long seed=System.currentTimeMillis();
        Random r1=new Random(seed);
        Random r2=new Random(seed);

        System.out.println(r1.nextInt());
        System.out.println(r1.nextInt());
        System.out.println(r2.nextInt());
        System.out.println(r2.nextInt());
    }
}
